package com.nacos.shangtu.service.impl;

import com.nacos.shangtu.entity.po.RecordPO;
import com.nacos.shangtu.mapper.RecordMapper;
import com.nacos.shangtu.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl implements RecordService {

    @Autowired
    private RecordMapper recordMapper;

    @Override
    public void save(List<RecordPO> records) {
        for (RecordPO record : records) {
            recordMapper.insert(record);
        }
    }
}
